package com.globalresources.po;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Message entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Message implements java.io.Serializable {

	// Fields

	private Integer id;
	private User user;
	private String type;
	private String content;
	private String title;
	private Date sendTime;
	private Byte isDelete;
	private Set<MessageReceiver> messageReceivers = new HashSet<MessageReceiver>(0);

	// Constructors

	/** default constructor */
	public Message() {
	}

	/** minimal constructor */
	public Message(User user, String type, String content, String title, Date sendTime, Byte isDelete) {
		this.user = user;
		this.type = type;
		this.content = content;
		this.title = title;
		this.sendTime = sendTime;
		this.isDelete = isDelete;
	}

	/** full constructor */
	public Message(User user, String type, String content, String title, Date sendTime, Byte isDelete, Set<MessageReceiver> messageReceivers) {
		this.user = user;
		this.type = type;
		this.content = content;
		this.title = title;
		this.sendTime = sendTime;
		this.isDelete = isDelete;
		this.messageReceivers = messageReceivers;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getSendTime() {
		return this.sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public Byte getIsDelete() {
		return this.isDelete;
	}

	public void setIsDelete(Byte isDelete) {
		this.isDelete = isDelete;
	}

	public Set<MessageReceiver> getMessageReceivers() {
		return this.messageReceivers;
	}

	public void setMessageReceivers(Set<MessageReceiver> messageReceivers) {
		this.messageReceivers = messageReceivers;
	}

}